Simulating Evolutionary Games: A Python-Based Introduction

نویسنده

  • Alan G. Isaac
چکیده

This paper is an introduction to agent-based simulation using the Python programming language. The core objective of the paper is to enable students, teachers, and researchers immediately to begin social-science simulation projects in a general purpose programming language. This objective is facilitated by design features of the Python programming language, which we very briefly discuss. The paper has a tutorial component, in that it is enablement-focused and therefore strongly application-oriented. As our illustrative application, we choose a classic agent-based simulation model: the evolutionary iterated prisoner's dilemma. We show how to simulate the iterated prisoner's dilemma with code that is simple and readable yet flexible and easily extensible. Despite the simplicity of the code, it constitutes a useful and easily extended simulation toolkit. We offer three examples of this extensibility: we explore the classic result that topology matters for evolutionary outcomes, we show how player type evolution is affected by payoff cardinality, and we show that strategy evaluation procedures can affect strategy persistence. Social science students and instructors should find that this paper provides adequate background to immediately begin their own simulation projects. Social science researchers will additionally be able to compare the simplicity, readability, and extensibility of the Python code with comparable simulations in other languages.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Pyvolve: A Flexible Python Module for Simulating Sequences along Phylogenies

We introduce Pyvolve, a flexible Python module for simulating genetic data along a phylogeny using continuous-time Markov models of sequence evolution. Easily incorporated into Python bioinformatics pipelines, Pyvolve can simulate sequences according to most standard models of nucleotide, amino-acid, and codon sequence evolution. All model parameters are fully customizable. Users can additional...

متن کامل

Colorsims: A python package for evolving linguistic color naming conventions within a population of simulated agents

Colorsims is a python package for simulating the cultural evolution of linguistic color naming conventions. Simulations are modular, allowing the user to explore the effects of varying different assumptions such as the color space, environment, agent learning mechanisms, population size, social network structure, and evolutionary dynamics. Utilities for storing and visualizing simulation data a...

متن کامل

Evolutionary Agent-Based Modeling of Past Societies’

In this work, we extend a generic agent-based model for simulating ancient societies, by blending, for the first time, evolutionary game theory with multiagent systems’ self-organization. Our approach models the evolution of social behaviours in a population of strategically interacting agents corresponding to households in the early Minoan era. To this end, agents participate in repeated games...

متن کامل

Introduction to Programming with Greenfoot - Object-Oriented Programming in Java with Games and Simulations, Second Edition

Python 3 Object Oriented Programming is writen by Dusty Phillips in English language. Release on 2010-07-26, this book has 404 page count that contain essential information with easy reading structure. The book was publish by Packt Publishing, it is one of best programming book genre that gave you everything love about reading. You can find Python 3 Object Oriented Programming book with ISBN 97...

متن کامل

Social Consequences of Commitment

This paper begins with a detailed computational introduction to a classic ACE model: an evolutionary prisoner’s dilemma. The paper presents a simple but fully coded object oriented implementation of this model. (We use the Python programming language, which is shown to be a natural ally for ACE research). Using these tools, we demonstrate that player type evolution is affected by cardinal payof...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. Artificial Societies and Social Simulation

دوره 11  شماره 

صفحات  -

تاریخ انتشار 2008